<script type="module" lang="ts">
// @ts-nocheck
import { exactType } from '../shared';

createApp({ foo: 1, exactType, baz() { return 'baz'; } });

const bar = 123;

// The "Type annotations can only be used in TypeScript files.javascript" error is not from Volar
export let baz: string;

function createApp(_ = {}) { }
</script>

{{
	// @ts-expect-error
	exactType(foo, {} as number)
}}
{{ bar }}

<div id="app" v-scope="{ open: true, elseOpen: true }">
	<!-- do not fix for now -->
	<!-- {{ exactType(open, {} as boolean) }} -->
	{{ exactType(elseOpen, {} as boolean) }}
	<button @click="elseOpen = !elseOpen">toggle else</button>
</div>
